<%@page import="com.liferay.portlet.expando.model.ExpandoColumn"%>
<%@ include file="/html/init.jsp" %>
<%
	long companyId = themeDisplay.getCompanyId();
	List<ExpandoColumn> expandoColumns = DynaTableLocalServiceUtil.getColumns(companyId, dynaTableName);
%>
<portlet:actionURL var="addRowURL" name="addRow" />

<aui:form action="<%= addRowURL.toString()%>" name="fm" method="post">
	<aui:input name="dynaTableName" type="hidden" value="<%= dynaTableName %>" />
	<aui:fieldset>
		<c:forEach items="<%=expandoColumns%>" var="expandoColumn">
			<aui:input name="${expandoColumn.name}?${expandoColumn.type}" label="${expandoColumn.name}" inlineLabel="true"/>
		</c:forEach>
		<aui:input name="save" type="submit" label="" value="save" />
	</aui:fieldset>
</aui:form>